#ifndef _RECTANGLE_H
#define _RECTANGLE_H

#include "Point.h"
#include "Figure.h"

class Rectangle: public Figure{

	public:
		
		Rectangle();

		Rectangle(std::string id, Point vertex,int width, int height, Color *borderColor);

		Rectangle(std::string id, Point vertex,int width, int height, Color *borderColor, Color *fillColor);

		Rectangle(std::string id, Point vertex,int width, int height, Color *borderColor, Texture *texture);

		Rectangle(std::string id, Point vertex,int width, int height, Texture* texture);

		std::string getCreationLog();

		void draw() throw (DrawingExcep);

		~Rectangle();

	private:

		void setLimits(Point vertex);

		void drawTextured();

		//los cuatro puntos del rectangulo
		Point pointA;
		Point pointB;
		Point pointC;
		Point pointD;

		int width;

		int height;

};

#endif